//
//  STAdEnums.swift
//  iPhone
//
//  Created by Toj on 4/6/23.
//

import Foundation
import HandyJSON

enum STAdNativeType: Int {
    case unknown = 0
    case appOpen = 1
    case interstitial = 2 // 插页
}

enum STAdModelType: Int, HandyJSONEnum {
    case unknown = 0
    case native = 1
    case admob = 2
    case admobRewarded = 6
    case admobAppOpen = 8
    
    static var admobInterstitial: STAdModelType {
        return .admob
    }
    
    var adName: String {
        switch self {
        case .native:
            return "native"
        case .admob:
            return "admob"
        case .admobRewarded:
            return "reward"
        case .admobAppOpen:
            return "appOpen"
        default:
            return ""
        }
    }
}


/** 广告类型 汇总 */
public enum STAdType: Int, HandyJSONEnum {
    case unknown = 0 // 默认未知
    case playerBefore  = 1  // 视频前贴(视频)
    case playerImage   = 2  // 视频前贴(图)
    case playerSuspend = 3  // 视频暂停
    
    case launch  = 4  // 开屏
    
    case banner            = 5  // banner
    case bannerMini        = 6  // mini banner
    case bannerSamall      = 7  // samall banner(未用)
    case bannerMiddle      = 8  // middle banner
    case bannerLarge       = 9  // large banner(未用)
    case bannerADMobSamall = 10 // samall adMob banner
    case bannerADMobLarge  = 11 // large adMob banner
    case bannerAdt         = 12 // adt banner
    
    case matchCalendarLarge = 13 // 比赛广告(赛历)large
    case matchCalendarSmall = 14 // 比赛广告(赛历)small
    case matchQuarterLarge  = 15 // 比赛广告(赛季)large
    case matchQuarterSmall  = 16 // 比赛广告(赛季)small
    
    case bannerLiveTVLarge = 17 // LiveTV 大banner
    case bannerLiveTVSmall = 18 // LiveTV 小banner
    case floatPlayerIcon = 19 // 浮窗广告-播放器
    case floatIcon       = 20 // 浮窗广告-图标
    case floatBanner     = 21 // 浮窗广告-banenr
    case reward = 22    // 激励广告
    case interstitial = 23    // 插页广告
}
